fix: allow SVG filter elements#300
fix: allow SVG filter elements#300scratching-claws wants to merge 2 commits intoscratchfoundation:developfrom
Conversation
Adds a rule to allow the SVG filter tag, when sanitizing SVGs, so that effects such as shadows and blur do not lead to SVGs which don't diplay on the project stage
|
Will this also allow things like I've looked at DOMPurify's readme page and it says there is a toggle for SVG filters |
That is a very good point, and thank you for raising it. I have changed the pull request so that is now uses the SVG filters profile, instead of only allowing the additional tag |
Adds a rule to allow the SVG filter tag, when sanitizing SVGs, so that effects such as shadows and blur do not lead to SVGs which don't diplay on the project stage
Resolves
Fixes this issue: #269
Proposed Changes
Adds a rule to allow the SVG filter tag
Reason for Changes
Stops the SVG sanitizer from removing filter tags from SVGs, so that SVGs with shadows/blur display correctly on the stage